package com.biz.primus.ms.homepage.trans;

import com.biz.primus.homepage.vo.CoverRoVo;
import com.biz.primus.ms.homepage.dao.ro.CoverRo;
import com.google.common.base.Function;
import org.springframework.beans.BeanUtils;

/**
 * Created by jiangnan on 2017/7/12.
 */
public class CoverRo2CoverRoVo implements Function<CoverRo,CoverRoVo> {
    @Override
    public CoverRoVo apply(CoverRo input) {
        CoverRoVo coverRoVo = new CoverRoVo();
        BeanUtils.copyProperties(input,coverRoVo);
        coverRoVo.setId(input.getId());
        return coverRoVo;
    }
}
